<%@page import="weaver.general.Util"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/mobile/plugin/westvalley/common/jsp/generatorCodeCommon.jsp" %>
<%
String tableName = Util.null2String(request.getParameter("tableName"));
String className = Util.null2String(request.getParameter("className"));
String mode = Util.null2String(request.getParameter("mode"));
String packagePath = Util.null2String(request.getParameter("packagePath"));

String codeText = "";
if("javaBean".equals(mode)){
	codeText = basisJavaBeanCode(packagePath,className,findTableFieldMap(tableName));
}else if("jfinalModel".equals(mode)){
	codeText = jfinalModelCode(packagePath,className,findTableFieldMap(tableName));
}else{
	codeText = "未适配!";
}

out.print(codeText);
%>
